{extend name="base/layout" /}

{block name="body"}
<article class="cl pd-20">
    <p class="f-20 text-success">{:config('admin_system_name')}
        <span class="f-14">{:config('admin_system_version')}</span>
    </p>
    <p>上次登录IP：{:long2ip(session('user_auth')['last_login_ip'])}   上次登录时间：{:date('Y-m-d H:i:s',session('user_auth')['last_login_time'])}</p>
    <table class="table table-border table-bordered table-bg mt-20">
        <thead>
        <tr>
            <th colspan="2" scope="col">服务器信息</th>
        </tr>
        </thead>
        <tbody>
        <tr>
            <th>当前系统用户名 </th>
            <td>{:session('user_auth')['nickname']}</td>
        </tr>
        <tr>
            <td>服务器计算机名</td>
            <td><span id="lbServerName">{:gethostbyaddr($_SERVER['REMOTE_ADDR'])}</span></td>
        </tr>
        <tr>
            <td>服务器IP地址</td>
            <td>{:get_client_ip()}</td>
        </tr>
        <tr>
            <td>服务器域名</td>
            <td>{$_SERVER['SERVER_NAME']}</td>
        </tr>
        <tr>
            <td>服务器端口 </td>
            <td>{$_SERVER['SERVER_PORT']}</td>
        </tr>
        <tr>
            <td>服务器操作系统 </td>
            <td>{:php_uname()}</td>
        </tr>
        <tr>
            <td>服务器当前时间 </td>
            <td>{:date('Y-m-d H:i:s')}</td>
        </tr>
        <tr>
            <td>服务器上次启动到现在已运行 </td>
            <td>{:explode(",", exec('uptime'))[0]}</td>
        </tr>
        <tr>
            <td>虚拟内存 </td>
            <td>{:memory_get_peak_usage()/1024}kb</td>
        </tr>
        <tr>
            <td>当前程序占用内存 </td>
            <td>{:memory_get_usage()/1024}kb</td>
        </tr>
        </tbody>
    </table>
</article>
{/block}